package com.sdp.wx.db.wx_wz_procured.service.impl;

import com.sdp.wx.db.wx_wz_procured.entity.WxWzProcured;
import com.sdp.wx.db.wx_wz_procured.mapper.WxWzProcuredMapper;
import com.sdp.wx.db.wx_wz_procured.service.IWxWzProcuredService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zsp
 * @since 2024-01-20
 */
@Service
public class WxWzProcuredServiceImpl extends ServiceImpl<WxWzProcuredMapper, WxWzProcured> implements IWxWzProcuredService {

	@Override
	public WxWzProcured queyrWxWzProcuredByCode(String planCode) {
		LambdaQueryWrapper<WxWzProcured> queryWrapper = new LambdaQueryWrapper<>();
		queryWrapper.eq(WxWzProcured::getPlanCode, planCode);
		return getOne(queryWrapper,false);
	}

}
